package org.tlipoca.smarticlefavorites.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.genntii.smdomain.dto.ArticleFavoritesDTO;
import org.genntii.smdomain.entity.ArticleFavorites;
import org.genntii.smdomain.vo.ArticleFavoritesCountVO;
import org.genntii.smdomain.vo.ArticleVO;

import java.util.ArrayList;

public interface ArticleFavoritesService extends IService<ArticleFavorites> {

    ArrayList<ArticleVO> getArticleFavoritesByDirectoryIdService(Long directoryId);

    ArrayList<ArticleFavoritesCountVO> getArticleFavoritesCountByUserIdGroupByDirectoryIdService(Long userId);

    void addArticleFavoritesService(ArticleFavoritesDTO articleFavoritesDTO,Long userId);

    void deleteArticleFavoritesService(Long favoritesId);

    void deleteArticleFavoritesBatchService(ArrayList<Long> favoritesIds);

}
